package com.vegetable.modules.entity.finance.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 加工订单损耗统计VO
 */
@Data
@ApiModel(value = "加工订单损耗统计VO", description = "加工订单的损耗情况统计")
public class PackLossVO {

    @ApiModelProperty(value = "加工日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date packDate;

    @ApiModelProperty(value = "单据编号")
    private String docNo;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "投入重量")
    private BigDecimal inputWeight;

    @ApiModelProperty(value = "产出重量")
    private BigDecimal outputWeight;

    @ApiModelProperty(value = "损耗重量")
    private BigDecimal lossWeight;

    @ApiModelProperty(value = "损耗率(%)")
    private BigDecimal lossRate;

    @ApiModelProperty(value = "班组名称")
    private String teamName;
    
    @ApiModelProperty(value = "商品单价")
    private BigDecimal goodsUnitPrice;
    
    @ApiModelProperty(value = "损耗金额")
    private BigDecimal lossAmount;
}